#ifndef MG_CRC_H
#define MG_CRC_H

#include "ite/itp.h" //for all ith driver (include GPIO) & MACRO
#include <sys/ioctl.h>
#include <unistd.h>
#include "ite\ith.h"


//CRC8校验
uint8_t Get_CRC8(uint8_t *pData, uint32_t len);
//CRC16_CCITT
uint16_t CRC16_CCITT(uint8_t *pData, uint32_t len); 
uint16_t CRC16_XMODEM(uint8_t *pData, uint32_t len);
//CRC32
uint32_t CRC32(uint8_t *pData, uint32_t len);
#endif